
angular.module('myApp')

    .controller('batchCtrl', function ($scope, $http, $httpParamSerializerJQLike, $log, OpenService, CheckboxService,
                                       CacheService, limitToFilter, filterFilter,myConstant) {


        var vm = $scope.vm = {};
        vm.login = login;
        vm.loginout = loginout;
        function login (){
            var ctx = $("#ctx").val();
            $.post(ctx+"/riskUserLogin/userLogin/userLoginGo",null,function(response){
               if(response=="S00000"){
                   alert("登录成功！");
               }else{
                   alert("登录失败！");
               }
            })
        }

        function loginout (){
            var ctx = $("#ctx").val();
            $.post(ctx+"/riskUserLogin/userLogin/userLogout",null,function(response){
                if(response=="S00000"){
                    alert("登出成功！");
                }else{
                    alert("登出失败！");
                }
            })
        }


    })

/*
$(function(){

    $("#c_login").click(function(){
        //登陆

        $.post("${ctx}/riskInfo/userLoginGo",null,function(response){

        })
    });

    $("#c_logout").click(function(){
        //登出
        $.post("${ctx}/riskInfo/userLogout",null,function(response){

        })
    });
});*/
